Fixes Issue 9136 - Add isNested trait for aggregates and functions.
Merge pull request #1362 from AndrejMitrovic/IsNestedTrait

Issue 9136 - Add isNested trait for aggregates and functions