fix class attribute failures. attribute types must be defined
add asSet back for uniqueness