fixed parsing bug in pattern specifications, scope on match expressions, and continued work on fmt test