createRepeatInstance method
Adds a repeat instance at repeatRef (fully qualified, with the new
instance's multiplicity) from the repeat's template, preloads it,
fires jr-insert and odk-new-repeat, and evaluates what it
affects.
The reference-based core of JavaRosa's createNewRepeat(FormIndex).
Implementation
TreeElement createRepeatInstance(TreeReference repeatRef) =>
_createRepeatInstance(repeatRef, _repeatDefFor(repeatRef));