Fix bugs in PeriodGroup#split_into