Check that expressions used in GROUP BY are comparable