Remove isType methods from utility and use typeof instead

Next up in the utility cleanup is the isType methods. They only do a simple typeof check, and all of the type-checks we do are numbers, strings and functions, and they have no weird behavior as far as I know. Rewrote code to use typeof, deleted methods from utilities and associated tests.