Add relative tolerance tests to Math and Cartesian*.
Use relative tolerance test to remove duplicate positions from polylines.