ToArray better handles children when recurse option is false