refactored the loop for rendering of arrays
Merge pull request #67 from vogelsgesang/array-iteration

refactored the loop for rendering arrays