Better management of returned arrays from AS actions.

Fixes #1825
It kept crashing, so I caught the exception in the debugger. I think this is supposed to be `fileObjectWithArray:object`.