Support for annotating complex attributes with the class they contain