BUG: (GH3911) groupby appying with custom function resulting in frame did not convert dtypes

     on the result object
Merge pull request #3913 from jreback/groupby_apply

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