added support for chained member expressions in a Last or First aggregation.
added tests for aggregations needing type conversion.