ensureUnique
Ensures the key is unique by appending -${max_suffix + 1} if there is a conflict. If the key is unique, it is returned as-is.
Ensures the key is unique by appending -${max_suffix + 1} if there is a conflict. If the key is unique, it is returned as-is.