Now checking fields and lengths of job arrays at the end of the test instead of on the fly. Various improvements.