FOR EACH o IN oCollection CLEAR RESOURCES * .. code block ENDFORThis is a fairly drastic solution I would have thought, but it seems to work without any side effects.
CLEAR RESOURCES = SYS(1104) RELEASE eVar... and any other memory altering commands.