Checks that the type definition, schema, or directive is not defined multiple times.