It has been a year since China unexpectedly devalued the yuan, setting off weeks of alarm in global financial markets. Companies scurried to repay foreign currency debts, residents moved to diversify their savings abroad and traders struggled to figure out how the currency should be valued.