M156: fix obj generator to keep TypeVersion as int