Added bytearray support to protobuf serialization