Added support to access attributes of composite types.