Restore kind_of to match using kind_of? rather than ===

Restore `kind_of(...)` to match using `kind_of?` rather than `===`

Fixes #744.
I choose to stub the actual constant instead.