Fix elimRepeated not transforming annotations.