Check for graphnode redefinitions only in the same scope