pub fn output_to_string( spec: &Spec, res: &ScVal, function: &str, ) -> Result<TxnResult<String>, Error>