Loops: fix watchSource sbt setting for examples
Loops: split closure transformation code