CLJS-495

Implement CLJS-495 on the clojure version of the compiler by applying https://github.com/clojure/clojurescript/commit/3ee148acac436dd489396fc6783ba72bbd7ff79f -- on the cljs version, it's a `defn` that calls `goog/typeOf`.