BUG: Issue with groupby agg with a single function and a a mixed-type frame (GH6337)

closes #6337