refactor(angular.forEach): replace `forEach` with faster `for` loop

Closes #3221