Convert arrays to iterators when passed to iterator(array)