AxisStepper: optimize command generation.
On AVR, speeds up planning by almost 10%. This is because
generate_command() is called a *lot* of times during planning.