small fix + comments
fix issue when unnamed patterns were marked optional