Add the possibility to serialize our own types through the protobuf serializer
Replace ProtobufSerializerPrecompiled.Serialize and ProtobufSerializerPrecompiled.Deserialize methods which used a big if-tree to have a dictionary lookup instead
As I don't own BZ, someone else will need to adapt this code for it.
Changes made in this pull request
As I don't own BZ, someone else will need to adapt this code for it.