Bazoumana Toure scored in stoppage time as Ivory Coast rallied from 2-0 down to beat Gabon 3-2, topping Group F.