MDL-37932 formslib: setAdvanced for repeatelements.
DONOTINTEGRATE demo that it works using qtype_calculated.
MDL-38090 JavaScript Make forms JS more resilient

This issue also corrects the way in which Y.one is called. Previously it
was called as constructor rather than as a static method so it always
returned a Y.Node, regardless of whether a node was found.
Merge branch 'MDL-38090-m' of git://github.com/andrewnicols/moodle into MDL-37932
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.