fix: CArchive reading/writing of CVariant used different types for type. Fixes #14744.