On the Commutative Equivalence of Algebraic Formal Series and Languages