Support for @inject in aggregation functions