Fixed Export Bug and Added IsDebugOn to the plugin system

Added IsDebugEnabled to the plugin system to determine if debugging is on and to allow OpenGL/Plugins to know if to draw.

Fixed a second Export but in SmartGetFieldArray2DInt.

Still need to fix the capturing because when disabled, it disables graphics button and debug button. I can do that later.

EDIT: Smart's destructor crashes the JVM twice. Applet.stop() and Applet.destroy() causes this. No error log either. Seems to happen with regular RS loaders as well.