agssim: catch potential OOB access in change_reg_usage