Could you please move it to [sdk/util/array](https://github.com/mozilla/addon-sdk/blob/master/lib/sdk/util/array.js) and call
`fromIterator`.