Add a test for out-of-range constant indices failing compilation

ESSL 1.00 spec states that a constant index must generate a compilation
error if it is out of range. Test this with a variety of constant
expressions.