Fix crash in TDJSViewCompiler

The compiled function objects were getting GC'd, after which calling them would crash.