generator: add enumerateInstances method to iOS factory class