make undefined tests use void(0)

- replace `typeof(obj) === "undefined"` with `obj === void(0)`
(it's much faster)