Add new test for Region and fix description of Pattern#match.
Pair#match now supports matchedRegion.
fix bug that pairs can collide