backported a types_variantStructDescription.cpp fix from variant_type
(will come in with the merge anyway)