Structural rearrangements allow nucleic acid discrimination by type I-D Cascade