cascading selections inside repeats fixed, closes #421 (& refactored some older tests)
outputs within repeats fixed, closes #422, plus slight performance improvement by adding a form variable repeatsPresent.