Fix job array sched anomalies

Fix some anomalies in the main scheduling loop for job arrays
Improve logging in the main scheduling loop for job arrays
Fix some job array hashing issues