Better detection of duplicates in AxisPaths