Optimize checking if a circuit node is a node reference

Sreekanth Arikatla requested to merge optimizeRefNodeCheck into master

Merge request reports