FIX #1533: foreign exporing the same identifier multiple times gave a link error
We were generating a new top-level binding derived from the name of the existing top-level name, and making the name external. Multiple instances therefore clashed. The fix is to make each name unique, by appending an actual Unique to the derived name.
Showing with 13 additions and 1 deletion