Yes.
I see exactly what’s going on. I have to think about it though. It’s very unexpected to me and I don’t have a straightforward fix.
Basically we have site settings we call “enums” which are not flat arrays but array of objects, however enum site setting doesn’t give info about the key used in the object.