Cosmetic change to use more idiomatic function declarations
Fix problem with labels for table's aggregate functions
Report errors for incorrect use of aggregate functions parameters
Accurately show aggregate functions' optional arguments