Fixes Model.aggregate().as(), adds tests for it
Fixes test typo in commit 2de728358704e50631e5ec68bba0fe4090357509
Fixes previously added aggregate tests to pass on postgres

Selected columns must be in an aggregate call or group by column.