fails, while eachslice(ones(3,1),dims=2)
works well. (Similar for other dimensions and higher order dims).
This is somewhat inconsistent with the fact that ones(3)[:,1]
does its job, and it is also inconvenient.
EDIT: sorry, I forgot to add that eachcol(ones(3))
works fine.