make safe_set use dict from get_flat_type_info to also get attributes from parent classes.