Optimise constructing ordered metadata (merge path)

Duplicate coord-dimension association get found, resulting in 10% faster overall for
the merge path after removal.