Initial support for repeatDur, min, max

We now support simple scenarios where repeatDur, min, max are used.
We should test repeatDur, repeatCount, end, min and max combinations.