Convert std::vector to VariantArray

Adds support to convert std::vector to VariantArray.

Useful to serialize Options that give choices.
or maybe even shorter?:
```C++
return toVariantArray(elements).value<std::string>();
```