Not really an idea, but Duane asked me to document this minor issue, and this is where things are getting recorded during the workshop:
If <repeat> or <repeatForSequence> is inside <sum>, the editor underlines it in orange and the context window contains this message:
Warning
Element <repeat> is not allowed inside of <sum>.
The code actually works, but Duane wanted to update some internal stuff to prevent the warning.