Allow diff deltas to be accessed by index and make patch generation explicit with hunk and line access by index as well.