Fix type function

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