'Riverdale' isn't the first show to time-jump its way out of a funk