Fix major bug in GCodeAnalyzer which made it useless and maybe harmful
Attempt at cleaning up resuming/restarting behavior