Fix scheduler minimums and prios

This fixes two bugs in the scheduler:

- When getting its child jobs, a queue would neglect to filter the jobs to include only those that actually do belong to this queue.

- When a job with a higher priority than the current running jobs is submitted, it will only be started when there are no running jobs left in its queue.