When we eliminate duplicate operational mode command nodes with the same name at the same level, we need to ensure not to add any new ones, so that the JSON cache remains usable for command lookup.
It's now easy to do thanks to the new --check-path-ambiguity option that @jestabro introduced in T7561.