Fix #1369: False-positive matches in reverse-mapping of filename to classname.