better name presence and variant_properties handling in Variant#ensure_name method