sval: update function_comparison() to take an sval.