Adds a type for the captured frame map.
Updates captured frames map when a capture completes.
Removes use of general variables and prefer activeJob whenever possible in the capture module.
Attempts to fix the issue with duplicated scheduler jobs using duplicated sequence jobs.
Issue was in the duration estimation, which was not properly consolidating captured frames for single scheduler jobs.