added missing dtor to semantics::ScriptModule
fixed various memory leaks in reader::Parser