Throw exception when an aggregation functions is not primitive or a new known complex function.