refactor IScriptApiObject reset method to dispose, extends IDisposable
add isDisposed method to IDisposable interface