Rework FnCallFold to use VarRefToJson