Years of structural reforms have made developing economies more resilient and less vulnerable to external shocks. That's good news for the U.S., too.