Makes the diffSeries function support functions as parameters
Ensures moving average returns the correct start and end time for a simple metric list