Optimization
Fix bug when an axis is specified multiple times in G0 or G1.