ErrorTolerances refactor.
Improve use of generics.
Switch to using iterator instead of list for global sampling to avoid pre-allocating a super large list.