v.20.10Bug Fix

Fix Optimization for Group By with Join Support

Fixrf optimization of group by with enabled setting optimize_aggregators_of_group_by_keys and joins. This fixes #12604. #16951 (Anton Popov).