Refactor binding generated casted-this checks for attribute setters