support having clause in group by

again literal check ;)