Switch to pseudo-ES6 iterator protocol support (like in FF27)

https://bugzilla.mozilla.org/show_bug.cgi?id=907077#c14