fix a small bug in top-matcher
1) fix the issues in componentset matcher; 2) fix {n} issue in repeat matcher