Correctly generate <file> entries for new copy-to targets. Conref resolution works