BUG: is_superperiod and is_subperiod cannot handle higher freq than S

Closes #7772, Closes #7760.