Added: checking if node of given type exists on any path that contains given node (testing for legal children of types like country or cycle), used in noderef.legalChildren().