3618.diff - Changes all primitive checks to use typeof, removed use of isType, converted isArray and isFunction to new style.