proper way to iterate on enumerables of an Array thay may have its prototype extended