Analyzing the Nuances of Transformers' Polynomial Simplification Abilities