Add bounds checking to field element setters