stats: Fix computation of summed standard deviation