fixed crashes, _scripts and _scriptNames are NSArrays, closes #25