Fix length types to unit32_t since some objects in MsgPack can be of that size