fixes for moving average
more moving average fixes to resampler::points