[#902] Make AggregateFunction the base type for constructing window functions [#903] Field.lag(int, T) erroneously delegates to Field.lead()