swr/rasterizer: Refactor events collection mechanism

Several improvements and cleanups in events and statstics mechanisms
13 jobs for !4 with swr-upstream-4-events-refactor in 88 minutes and 45 seconds (queued for 1 minute and 5 seconds)
merge request