Added template function select_if() in variant.h; Unit-tested.

`const auto hom_ref = [](const VariantFieldValue<int32_t>& x)`