Fixed a bunch of bugs with the msgpack serializer.