Added some write methods to the serializer

Note that these have yet to be tested extensively.
Use schema directly for decoding added encoding support

It should now correctly handle the signed/unsigned
ambiguity inherent in protobuf encoding.