CLJS-881: check for duplicate keys in array-map

the function impl of array-map currently calls the constructor
directly, while the macro version calls .fromArray. This means
the latter correctly checks for duplicate keys while the former
does not.

Switch the array-map function to use .fromArray.