The base and shift amount need to be integers, but not of the same type. This fixes #1296 and replaces #1297.
Now, version 5.* is all connected to making the uint type, which doesn't quite work. Generator versions 4 and 6 do not do this.