Fixes a false-positive error if the same std::variant<...> type is instantiated across multiple modules.