Use === and !== in lib

Mostly automated. Did some testing.

More testing would be nice.

cc @tomneedham @bartv2 @MTGap @karlitschek @LukasReschke @icewind1991 @DeepDiver1975 @tanghus @eMerzh