fn normalize_key(key: &str) -> String
Collapse a dotted key or table header to a.b.c: trims each segment and strips one layer of quotes so [ "lib" ] compares equal to [lib].
a.b.c
[ "lib" ]
[lib]