More GC fixes: new module system, test program