Improve error message for scalar subqueries in groupby