BUG: Bug in groupby with first/last where dtypes could change (GH3041_)
DOC: docstring updates in core/common.py for _possibily_cast_to_timedelta