refactor(ngRepeat): make use of declared variable

Rename unused arrayLength variable to arrayBound and use it inside loop