implemented proper operator= for optional_variant