Generators: switched to range-based for loops
Switched from iterator-based loops to range-based loops in several places in Generators code
CC @ewelina
Switched from iterator-based loops to range-based loops in several places in Generators code
CC @ewelina