[Git][ghc/ghc][wip/sjakobi/T27102-NonLocal] 70 commits: Check that shift values are valid