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

Restore `kind_of(...)` to match using `kind_of?` rather than `===`

Fixes #744.
I think this should be `"kind of #{@klass.name}"`.