Extension of avg/sum/max/min functions to work on arrays

The avg and sum functions work on any number of values, but they have to be fed in one by one: avg(number1, number2, etc). This is not very flexible to say the least. It would be great if these functions would work for arrays: avg(array_with_numbers). Similarly for the max/min functions, which currently only work on two values. Why not implement all the functions from the "Basic Statistics" component this way?