add special handling for NodeNameInterface, fix edge cases with
QueryObjectModelConstantsInterface
Merge pull request #141 from jackalope/fix_node_name_search2

add special handling for NodeNameInterface