fix type in _undefined()
add post_setattr_original_value implementation
fix setattr_properties and rich comparison in setattr_trait
implement setattr_generic