Make enterSubqueries switchable in findNodesOfType