some more progress:
the 'previously imprisoned unit are revived when activating the menu' bug doesn't appear anymore, and the free unit menu gives back ZoC, but it doesn't change max_moves for some reason, which is currently the main problem, in my opinion.

ok, so, another WML question: while porting XP Bank to 1.13.10, the $exp_stored_[$side_number]| variable seems to no longer appear. does anyone happen to know due to which changes in the 1.13.x series has part of my code become obsolete? oh, and here's the file: