Allow existing NodePath objects to be printed as well as AST nodes.