Allow explicit type mappings for interfaces declared in the project

Previously all *references* to an interface with an explicit type mapping would use the name provided by the mapping, but the declaration of the interface itself (and the corresponding filename) would ignore the mapped name.