Change msgpack serialization to be closer to the JSON one.
This breaks the current protocol, but deduplicates the code, and will allow for the addition of extra custom encoders/decoders by callers of this module.
Migrated from D2671 (view on Phabricator)