Implement auto-specialisation of imported Ids