Implement ChildIterator, fix getnext()/operator[].