BUG: allow std to work with timedeltas (GH8471)