Getting simple parameters to work in sublambdas used for aggregates.