[BUGFIX] Fixed iteration array

* Moved generation of iteration array to abstract base class.
* Extracted arguments first in loop render.