I believe the key to this bug was the introduction of strict equals checking `===` as opposed to type equals `==`