Script Runner: Make sure objects are XPC-safe before passing them back