Fixed problem in TupleEntrySchemeIterator where hasNext() returns different values when called multiple times before calling next()