Add utility function variant_dict_str

Signed-off-by: Jiří Janoušek <janousek.jiri@gmail.com>