Hmmm, I just went on to test them again. I don’t remember what happened during development.
Maybe it’s just accidental local shadowing breaking a large function for the first case.
The second one could be breaking only the same file. I must have remembered incorrectly.