Added handling for virtual fields in "GROUP BY"