Rewrite msgpack reader/writer
The existing msgpack reader ignores fields with primitive values.