fix issue #61: select only the longest match with Patterns containing tokens with Max > 1