Uncurry the private fold scalac bug workaround.