Change gol_foreach_object's order of parameters

Change gol_foreach_object's parameters to more intuitive order.