[2.0.0] fix #2401: cache for aggregating model methods
[2.0.0] added test for aggregating functions' cache
Merge pull request #2727 from maxgalbu/2.0.0_aggregators_cache

[2.0.0] Fix aggregate functions cache