Improve scheduling with overlapping reservations

Improve scheduling of jobs in reservations that overlaps other reservations.
bug 1051