Allow for duplicated titles and names.

I thought duplicates would be just a few, but it turns out that there are many, so we need to support them.