Replace custom 'type()' in favor of '$.type()'

The custom 'type()' function fails on IE8, returning 'object' when given
undefined as its argument. This breaks (at least) the 'add()' function. The
jQuery version has no such problem, and since it already exists and follows the
expected semantics as currently used, is a drop-in replacement.