fixed ambiguity in variant constructors for some platforms