added possibility to disable using having for DQL functions

for example for filtering with GroupConcat