Don't use a for-in loop for iterating over arrays.

It's generally not advised, and especially bad when using with
Ember, which adds properties to Array.prototype.