added compile-to-ram option, made vardict space configurable, made variable exports work, fixed function exports to not add unnecessary transfers at end of program