A person who has been discharged upon habeas corpus shall not be imprisoned or restrained again for the same cause, unless he or she is indicted therefor or convicted thereof, or does not find bail as ordered by a court of record or unless, after a discharge for a defect of proof or for material defect in the commitment in a criminal cause, he or she is again arrested on sufficient proof and committed for the same offense.
12 V.S.A. § 3984