Fix check for duplicate product type names.
Adjust to nested product attribute types object.