Substitute number equivalents when comparing to booleans

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