Fix type function in IE8

This will correctly return `"undefined"` as the result when calling the function
with `undefined` on IE8. This fixes the `add` function.