Provide job metadata when returning next job

Since redis doesn't handle lua hashes, maintain the job metadata as an
array. This requires remembering the position of each option in the
array.