Use newUniqueName, not qNewName, in flattenDValD.

This fixes singletons#38.