Raise fewer warnings about cross-type comparisons

Don't warn if we're (a) doing an `x in Enum` membership test or (b) comparing to a None.