Uniform doegenerator needed to re-start its counter each time __iter__ is called
Fixed uniform doegenerator so it handles nested loops
Merge pull request #1664 from hschilling/P66558096-uniform-doegenerator-restart

Uniform doegenerator needed to re-start its counter each time __iter__ is called