Fixed typo in arrayavg()