Made WpfExtensions.FreezeObject generic