Make sure to add the "general_unit, general_unit_upgrade" bit to the dismounted unit you're making into their general unit.