don't oversimplify std::variant<T..., null> LSP types
std::variant<T..., null> types are supposed to be serialized to
`{ x : null, y: ... }` but we would generate `{ y: ... }` instead, which
is invalid by the LSP specification.
Partially revert 7a85dc885b669f8cf2a9917209615d660d816c6b to not wrap
std::variant<T..., null> to optional.
Pick-to: 6.12
Fixes: QTBUG-147404
Change-Id: Ib7245ee079f6943d17579ea262484d4d883e8df6
Reviewed-by: Dmitrii Akshintsev <dmitrii.akshintsev@qt.io>
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>