Added std::mem::replace to iter uses.
Added group_by iterator.