minor improvements

datepart transformation
more aggregations, and tests