Javascript iteration hygiene

`for (var i in <array>)` can have unintended results if another library
monkey patches `Array.prototype`