fix pack/unpack function of MessagePack.