Add quote_column_name when using Group By

This fixes [rails/rails#15008](https://github.com/rails/rails/issues/15008). 
It seems that when using `ActiveRecord::QueryMethods.group()`, column name never be quoted.