extract NodeIterator class, fix setting of child parent key side references