Deprecated function toArrayList() on iterators.