Job array scheduling optimizations

If one task of a job array can not be scheduled in the main
scheduling loop, skip the subsequent tasks of that same
job array.
priority/basic - fix job priorities with --nice

priority/basic - Insure job priorities continue to decrease when jobs are
submitted with the --nice option.
bug 707