Checks duplicates: fields in struct types and method in interface types.