fixed iterating bugs in ItemImpl and ProviderImpl. Before that it was
impossible to use two iterators on same entity (they were using common
iterating index)