fix rhogen and finalize simple types for iOS in generator