Rename defined_attributes to delegated_attributes. Fixes #513