added enumerator return for each_along_dim without block