added matrix/array function signatures for:

cumulative_sum, log_sum_exp, max, mean, min, prod, sd, sum, variance