Better management of returned arrays from AS actions.

Fixes #1825
Hmmm.... I think that's the crash I saw recently, and fixed over in the tweaks branch. But of course that commit has been wiped from the face of the earth now :'( (unless you haven't force pulled yet and still have it locally?) I think I just changed it to `object` like you said