Impl to_writer for MsgPack