BUG: Bug in to_timedelta that accepted invalid units and misinterpreted m/h (GH7611, GH6423)

closes #7611
closes #6423