That is exactly want I am saying, without "RecursiveIteratorIterator::SELF_FIRST", the problem you addressed does not happen, please try the new commits in this PR.