job array record copy

This adds logic to copy a job record for a job array when we actually
schedule one of them. More work is still needed.