<div>setlocal/endlocal handling was dodgy in that if a batch program ended</div><div>with outstanding contexts, they were not being unwound, and additional</div><div>tests showed issues that called batch programs could unwind contexts</div>
<div>from the callee. This patch adds lots of tests for set/endlocal and</div><div>resolves the problems they highlight.</div><div><br></div>