I was thinking if unlearning Lone Wolf using CheatEngine bypassed the proper scripts for the party size, re-learning it may, as well. It's worth a shot, anyway (if that wasn't how it was relearned before).
You're right, it's worth a shot.
But if a save made shortly before all the manipulations existed, using that is definitely the easier way to go.
One problem is that it is hard to tell if a 'fix by respecc' worked because there is absolutely no visible indicator for it. Depending on how often Lonewolf was retaken ingame (not in CE, if that really bypassed scripts), the party size might have decreased so far that more than two respeccs would be necessary to 'fix' party size. Being able to hire again is the only indicator.
So:
- taking Lonewolf ingame reduces max party size by 1. every retaking with ingame methods reduces max party size. there is no check if a certain limit has been reached (which means it can go below 0 if external programs like CE manipulate variables the scripts expect to have exclusive access to)
- respecc with Moloch in the Homestead increases max party size by 1 if a character with Lonewolf respeccs. there is no check if a certain limit has been reached here as well
- losing Lonewolf without ingame scripts involved does not change max party size