give warning for duplicate object type names