Fixed bugs on function invoke expression SQL dumping and GROUP BY dereference
More tests on SQL Query
Fixes to expressions logic and evaluation