Fixes Issue 9136 - Add isNested trait for aggregates and functions.