perf($compile): replace forEach(controller) with plain loops
perf($compile): replace forEach(controller) with plain loops

Closes #11084

ggershoni/angular.js,ggershoni/angular.js,ggershoni/angular.js,ggershoni/angular.js