Dynamics of commuting systems on two-dimensional manifolds