MDL-37932 formslib: setAdvanced for repeatelements.
DONOTINTEGRATE demo that it works using qtype_calculated.
MDL-37932 allow Show more to work with repeat elements.

I think this also fixes some other problems with repeatelements and shortforms.
The shortforms code was trying to use hidden elements with names like
...[0] with optional_param which will not work.