Improve performance of undefined comparison

Comparing to void 0 is way faster than coercing to string
Fixed erroneous check for typeof

I am not a smart man ...
Merge pull request #1 from vzwick/patch-1

Improve performance of undefined comparison