SI-6091 overeager warning for reference equality

Don't warn on eq and ne unless they're the real eq or ne.
Merge pull request #2487 from paulp/issue/6091

SI-6091 overeager warning for reference equality