More strict comparison operator changes

As title states. These should not again pose an issue (`.length` always returns a number, for instance).