Some bugs fixes. regex_increment_cond reimplemented.