small issues in the ChainProcessor system. Some tests ending in .BAK should be runnable but can't for now because of a memory leak somewhere in the framework.