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