Fixes #394, Array.forEach() assumed to exist

IE8 doesn't support the Array prototype's forEach() method, and I used it
in grid.initTemplates(). I've fixed this to use angular.forEach() instead
and added a test to catch calls in initTemplates() to
Array.prototype.forEach()