It is a very good observation! You provided an explanation for a group of seemingly mysterious bugs
. Thank you!
Also thank you for the fix.
If you wouldn't mind I'll suggest little tweaks for this fix:
1) Adding VMS18WhiteGloveSocietyFactionOutfitWarningScript to OutfitFormalWear
If you put on a Formal wear first, then a Mask - the game counts you wearing WGS faction armor, but if you put on a Mask first, then a Formal wear - it thinks that you are not wearing WGS
faction armor. Adding a script to Formal wear fixes this issue.
2) I slightly changed if-conditions in the block 'On Unequip'. Now it in fact works only when you unequip the first item of a pair and skips everything when you unequip the second item.
You'll find the tweaked esp here: http://tes.ag.ru/inwork/WGS-fix.esp
I tested it myself, seems that everything OK now but I'll be grateful if somebody could verify it.
Sorry for my English