Fix sum along axis of an array expression

Force the evaluation of the expression to an array.
Validated by a new test case, along a few others.