Don't use forinstatement in renderer

It is always faster to iterate over an array then over an object.