Optimize EqualRel().
Relax linear distance tests to also allow a relative error to account for cases when the scales of the numbers get much larger.