Restrict use-isnan violations to comparison operators.

Fixes #1535.
it'd need to be `/^(?:[<>]=?|[!=]==?)$/` to account for `<` and `>`.

Feel free to submit a PR with an improved regex; I kind of prefer having each category separated out a bit more, but the test cases I added should cover whatever it ends up as.