BUG: (GH3911) groupby appying with custom function not converting dtypes of result

closes #3911