Improved {render} helper, added $__index__, $__iteration__ and $__total__ variables