ObjectVariantMapper::AddClass() now supports optional toObject Preflight hook (for backward compat reads)