Added a check to make sure a given attribute name won't overwrite an existing instance method.