Pattern-match: fix matching phrases in any order. #8018

Patterns like

match_mow ([first phrase]|firstphrase [second sequence]|secondsequence)

with the o option did not match responses like

'second sequence first phrase'

Thanks to Joshua Bragg and Tristan Rebeiro for finding and reporting
this problem.
Update version for a new release.