job array exit code fixes

Flesh out logic to aggregate exit state for a job array