Replace constructor calls on UniqueName and its subtypes with valueOf() wherever possible