Support variadic boost::variant

Review 2214
Related to #3044