```
Non-scoped enums can accidentally and silently decay into an integral
type. Also, the symbol names of the keys are exported to the surrounding
(usually global) namespace.
Fix both issues by switching to an enum class TxoutType in a (mostly)
scripted-diff.
```
Backport of core PR19114.
Depends on D9124.