Implemented object-protomessage serialization.