bemhtml: make common matches global and fast
Merge pull request #461 from bem/feature/faster-matches

bemhtml: make common matches global and fast