[branch-1.0][SPARK-4355] ColumnStatisticsAggregator doesn't merge mean correctly

This backports the bug fix in #3220.