use for loop in _.each even if Array.prototype.forEach is available

Currently, the behaviour of _.each depends on the availability of
Array.prototype.forEach, which can cause code to behave differently
in different environments.
remove references to native array methods