fix pgf_value2expr for partial applications