updated resource scripts
added global variable to script: __script__ which is a ScriptWrapper object of the Environment
fixed OptionSet.get()