Add index overrun checks in places where the tape is used as well.