Fix: a minor bug that prevents cdata deallocator from being invoked;
Fix: a minor bug for handling automatically returned values;
Fix: double runs of interactive run.