fix issue where booleans not encoded correctly in cljs