extend primitives with #to_msgpack