Made iterators use move semantics.