Added new method getAttributeKey to DataDefinition which always returns
the key, which can be used to call getAttribute and setAttribute. Marked
getAttributePosition as deprecated