Fix history_uint marshalling