Remove inline variable.
Remove GeneratedSeedJobReference.

- Use SeedReference instead as it contains the variables we need.
- Fix dirty generatedJobMap when a job is deleted.
- Fix reference retrieval issue.
- Update and add unit test to check generatedJobMap.
Rename test case.