Add support for jobs -k ranges

A little copypasta with a little reworking. Normally, I'd make another PR, but I think these should go together.

#4063
Important to note the use of map(&:to_s), since job IDs are actually strings... and they start at 0, heh.