preserve fms values for nonrandom tc, and more
preserve fms values for nonrandom tc, and more

To get compatibility with existing tooltables [on nonrandom machines],
we need to think of the first column as the tool number.  The second
column is unused but we can preserve it without too much trouble.
I bet this is the least surprising behavior.

For random, put the tool first as well, for consistency.

Also, improve the error messages (though they still bogusly go
to stdout.)

RunningLight/machinekit,EqAfrica/machinekit,cdsteinkuehler/linuxcnc,araisrobo/machinekit,araisrobo/linuxcnc,cdsteinkuehler/MachineKit,aschiffler/linuxcnc,ikcalB/linuxcnc-mirror,cdsteinkuehler/linuxcnc,ArcEye/MK-Qt5,unseenlaser/linuxcnc,unseenlaser/machinekit,mhaberler/machinekit,Cid427/machinekit,cdsteinkuehler/linuxcnc,araisrobo/linuxcnc,ArcEye/machinekit-testing,EqAfrica/machinekit,mhaberler/machinekit,ikcalB/linuxcnc-mirror,araisrobo/machinekit,ianmcmahon/linuxcnc-mirror,aschiffler/linuxcnc,unseenlaser/machinekit,mhaberler/machinekit,mhaberler/machinekit,EqAfrica/machinekit,Cid427/machinekit,bobvanderlinden/machinekit,narogon/linuxcnc,Cid427/machinekit,bobvanderlinden/machinekit,unseenlaser/linuxcnc,araisrobo/machinekit,araisrobo/machinekit,bmwiedemann/linuxcnc-mirror,jaguarcat79/ILC-with-LinuxCNC,strahlex/machinekit,ianmcmahon/linuxcnc-mirror,EqAfrica/machinekit,bmwiedemann/linuxcnc-mirror,unseenlaser/linuxcnc,cdsteinkuehler/linuxcnc,kinsamanka/machinekit,Cid427/machinekit,bobvanderlinden/machinekit,jaguarcat79/ILC-with-LinuxCNC,cdsteinkuehler/MachineKit,ianmcmahon/linuxcnc-mirror,ianmcmahon/linuxcnc-mirror,bmwiedemann/linuxcnc-mirror,aschiffler/linuxcnc,RunningLight/machinekit,strahlex/machinekit,araisrobo/machinekit,unseenlaser/machinekit,unseenlaser/machinekit,ikcalB/linuxcnc-mirror,mhaberler/machinekit,unseenlaser/linuxcnc,jaguarcat79/ILC-with-LinuxCNC,araisrobo/machinekit,Cid427/machinekit,bobvanderlinden/machinekit,bmwiedemann/linuxcnc-mirror,EqAfrica/machinekit,narogon/linuxcnc,RunningLight/machinekit,cdsteinkuehler/MachineKit,kinsamanka/machinekit,ArcEye/MK-Qt5,bobvanderlinden/machinekit,ianmcmahon/linuxcnc-mirror,kinsamanka/machinekit,cdsteinkuehler/MachineKit,strahlex/machinekit,ArcEye/machinekit-testing,cnc-club/linuxcnc,EqAfrica/machinekit,RunningLight/machinekit,ikcalB/linuxcnc-mirror,Cid427/machinekit,RunningLight/machinekit,strahlex/machinekit,cnc-club/linuxcnc,strahlex/machinekit,jaguarcat79/ILC-with-LinuxCNC,narogon/linuxcnc,ArcEye/machinekit-testing,cnc-club/linuxcnc,ArcEye/machinekit-testing,unseenlaser/machinekit,EqAfrica/machinekit,kinsamanka/machinekit,Cid427/machinekit,RunningLight/machinekit,kinsamanka/machinekit,yishinli/emc2,RunningLight/machinekit,strahlex/machinekit,ArcEye/MK-Qt5,yishinli/emc2,aschiffler/linuxcnc,ikcalB/linuxcnc-mirror,unseenlaser/machinekit,ikcalB/linuxcnc-mirror,unseenlaser/machinekit,kinsamanka/machinekit,bobvanderlinden/machinekit,ArcEye/MK-Qt5,yishinli/emc2,kinsamanka/machinekit,araisrobo/machinekit,ikcalB/linuxcnc-mirror,araisrobo/linuxcnc,EqAfrica/machinekit,bmwiedemann/linuxcnc-mirror,cdsteinkuehler/MachineKit,narogon/linuxcnc,ArcEye/machinekit-testing,araisrobo/linuxcnc,cnc-club/linuxcnc,cdsteinkuehler/linuxcnc,unseenlaser/machinekit,bobvanderlinden/machinekit,mhaberler/machinekit,araisrobo/linuxcnc,jaguarcat79/ILC-with-LinuxCNC,RunningLight/machinekit,ArcEye/machinekit-testing,ArcEye/MK-Qt5,ArcEye/machinekit-testing,cnc-club/linuxcnc,mhaberler/machinekit,araisrobo/machinekit,ArcEye/MK-Qt5,ArcEye/MK-Qt5,bobvanderlinden/machinekit,Cid427/machinekit,cnc-club/linuxcnc,cnc-club/linuxcnc,unseenlaser/linuxcnc,narogon/linuxcnc,mhaberler/machinekit,yishinli/emc2,aschiffler/linuxcnc,ArcEye/machinekit-testing,cdsteinkuehler/linuxcnc,bmwiedemann/linuxcnc-mirror,ianmcmahon/linuxcnc-mirror,bmwiedemann/linuxcnc-mirror,araisrobo/machinekit,kinsamanka/machinekit,cdsteinkuehler/MachineKit,strahlex/machinekit,ianmcmahon/linuxcnc-mirror,ArcEye/MK-Qt5