perf(ngRepeat): simplify code and remove duplicate array.length access

minimal perf gain (~2ms)