Fixed bugs with msgpack unpacking, tested most functions.