Ensure immediates in extend operands are in a valid range, also emit a more useful diagnostic when they are not.
There is no testcase for this fix since it is part of porting over MC/AArch64/basic-a64-diagnostics.s, which will be enabled for ARM64 once everything is fixed in it.