added has_attributes method to CComplexObject