[GEOT-4812] Table hints not applied to aggregate queries