Simplify periods.iter_instants and add periods.iter_subperiods.
Improve handling of different periods in formulas and holders.