Enforces the invariants the output keying depends on: every short name is present,
filesystem-safe (unchanged by .slug(), so refCode round-trips), no longer than
max_len, and unique — globally, or within each level of by (used for the per-tenure
landbase codes, which need only be unique inside their tenure).
validateShortNames(
x,
what = "NAME_SHORT",
max_len = .maxShortNameLength,
by = NULL
)x, invisibly, if every check passes; otherwise an error.