BUG: properly handle a user function ingroupby that returns all scalars  (GH5592)

related #5592

BUG: handle coercion of None for date/time like dtypes in a groupby result