MsgPack: fix mp_compare_uint and add an unit test for it