Improved parallel run generator

* Always write a unified run.sh file containing all iterations
* Auto-detect single vs array style based on whether there are
  any per-iteration parallel.resources overrides