Bogdan Cristea - 2013-11-01

I would say that rather the mean function needs fixing. For the sum function, it might be more problematic as choosing a larger numerical format for the accumulator could have an impact on performance. Anyway, patches and suggestions are always welcome.