ensure lua state is closed if gui script fails to start due to compile time error, fixes memory leak reported by waterwingz
Improved compression of badpixel.bin files.
Add support for 'AgentRAM' discovered by srsa_4c:
http://chdk.setepontos.com/index.php?topic=10886.msg106887#msg106887
Enabled for D10, G12, IXUS140 & IXUS310.