Cleanup/errorfractionmarking
Mostly simplifies the class using range based for loops. There is an internal functional change though, too, because the error map ordering is reversed, but not necessarily exactly (see commit 5e45e8af).
These changes are not tested, mainly because AFAIK there is no existing test.