RecursiveIteratorIterator + RecursiveArrayIterator is measurable slower than a manual recursive implementation