(a) It is a bar to another prosecution for the same crime if the crime is a misdemeanor, but it is not a bar if the crime charged is a felony when a person is
- (1) held to answer to the grand jury and the court dismisses the charge before the case is presented to the grand jury upon the motion of the prosecuting attorney;
- (2) held to answer to the grand jury and the court dismisses the charge because the indictment is not found against the person at the next session of the grand jury; or
- (3) indicted for a crime and the indictment is dismissed because the trial is not held within a reasonable period of time, there is not good cause shown for the delay, and the delay was not upon the application of the defendant or with the defendant's consent.