Add (de)serialization convenience functions

* Map -> bytes/output-stream
* byte-array -> ProtobufMap