Added Array::average, and fixed the alert