Several fixes
implementation of each() for iterators