Added funtionality to perform simple operations (+-*/) on aggregates.

Related to ticket #20930.