Initial implementation of anyarray_map