fix codec.msgpack exception undefined method `to_msgpack`