Fix issue with type_of? methods
Merge pull request #1 from garno/fix/type_of

Fix issue with TYPE_of? methods