typeof is much faster than {}.toString()

Proof: http://jsperf.com/typeof-vs-instanceof-vs-object-prototype-tostring
Merge pull request #190 from oleg8sh/patch-2

typeof is much faster than {}.toString()