Convert std::vector to VariantArray

Adds support to convert std::vector to VariantArray.

Useful to serialize Options that give choices.