Checks that a type member with the same name is not defined multiple times.