Make the occurrence analyser deal correctly with RULES for imported Ids