Flip (almost) every comparison

Flip comparisons and put the literal first, convert every loose equality comparison `==` to strict `===`