Ensure we invalidate items when updating them

This handles Set/ClearProperty() and UpdateInfo().

Fixes #14742.

@Montellese - I presume you're OK with the CVariant change?  (Compiler doesn't generate these ofc).