Simplify Not when applied to a Relational.

Replaces the Not object with a corresponding Relational object with equivalent
meaning.
Merge pull request #7319 from Tempel/relational_Not

Simplify Not when applied to a Relational.