Remove duplicate property name checks for object literals and classes.