Fixed the seemingly-random behavior where scaleX/scaleY would flip (and rotation change) during setting transformationMatrix.