Revert "refactor(ng-repeat): refactor the fix for #1015"

This reverts commit f6187aeb68ac5e7506a387557b713494ef23c726.

This is only reverted because it is not yet in g3v1x.