Substitute number equivalents when comparing to booleans

Resolves https://github.com/google/closure-compiler/issues/369.

I included `<`, `<=`, `>`, `>=` in addition to the `==` and `!=` operators requested originally.
Sounds good. Will change.