Verify selected indexes on repetition are correct

Adds some specs for repetition.selectedIndexes
Merge pull request #1326 from kriskowal/range-controller-selection

Verify selected indexes on repetition are correct