Fix lshift/rshift for runtime and const-fold consistency.