Ash calculus

Add support for movingAverage function and align the behavior of the diffSeries function to return null/undefined if the value to be subtracted from is null/undefined.