stable merge
1) Job promotion limit
2) Fix rangeByState and Job.get breaking with invalid job indexes