The scijava scripting framework adds an additional result element to each
script, it is named "result" and it's value is the return value the latest
statement executed in the script.
This is highly anoying and workarounds will always be hacks. We need to fix this upstream.