msgpack: add some tests, minor fixes.