This PR fixes constant folding for UIntX in the code generator. This optimization was previously simply dead code due to the way that uint literals are encoded.
This PR fixes an overeager insertion of `inc` operations for large uint constants. Closes: #10443