Use normal type conversion for JSON output from a routine

There is no guarantee that the immediate result of a script invocation is of the desired type (and no practical way to guarantee given that most are dynamically typed).

There are no session controls for things like binary format which need to be obeyed.