ensure mapping iterator can work with all kind of iterators