Improved sum and mean return types.