Fix cljs warnings and avoid broken cljs compilation in some cases.
Fix constant generation for cljs.
Release 2.2.4