changed typeof() call to type()
Merge pull request #1 from lalo/typeof

changed typeof() call to type()