Add returned slices for AddScaledTo and Cum*

Added missing returned slices for AddScaledTo, CumSum, and CumProd.

Also added tests for the returned slices.