Fixed #4797 (matchcompiler.py cannot handle overloaded findsimplematch and findmatch)