SI-7120 Erasure must honor typeref prefixes

Erasure was discarding these, which led to unnecessarily
wide types in quite particular circumstances. This showed
up as a double definition error in the reported bug when the
bridge method clashed with the erased signature.
Merge pull request #2125 from retronym/ticket/7120

SI-7120 Erasure must honor typeref prefixes