The deal euro-zone leaders hammered out in the early hours of Thursday sparked a world-wide stock rally. But the market moves belied widespread caution about the accord among economists and analysts—and even some of the decision-makers in the debt crisis.