implement msgpack_of_int