BUG: Bug in groupby with first/last where dtypes could change (GH3041_)

fixed #3041 (completed now)

DOC: docstring updates in core/common.py for _possibily_cast_to_timedelta