nmtst: add nmtst_variant_new_vardict() function