In uncertain 2012, stocks saw double-digit gains