Refactored statistical aggregates to separate stored, storeless implementations. Changed internal sample size counters to longs.