Apply the M251 fix for the X and Y axes to the development branch.

I noticed that a bit of my last pull request was applied to the ArduinoAVR portion of the development branch, but only the part checking for zero X and Y movement.  I've added the remaining code to both the AVR and DUE sub-"branches."