Bug fix in R/matched.R

"unmatched" and "matched" were scrambled.  Unscrambling.  (No time at the moment to check for consequences of this change, e.g. in tests or examples.)