added enumerator return for map and reduce_along_dim with no block