Got a tip from "ACHIM" over at Autodesk forum that seems to have done the trick. Modified my post and now the gcode looks as expected.
Nothing left but to try it on the machine.
Here's what Achim had to say:
"
You can enable your multi axis config in onOpen() and change this
if (false) {
var aAxis = createAxis({coordinate:0, table:true, axis:[-1, 0, 0], cyclic:true, preference:1});
machineConfiguration = new MachineConfiguration(aAxis);
setMachineConfiguration(machineConfiguration);
optimizeMachineAngles2(1); // map tip mode
}
to this:
if (true) {
var aAxis = createAxis({coordinate:0, table:true, axis:[-1, 0, 0], cyclic:true, preference:1});
machineConfiguration = new MachineConfiguration(aAxis);
setMachineConfiguration(machineConfiguration);
optimizeMachineAngles2(1); // map tip mode
}
as well as this:
var tcp = true;
to this:
var tcp = false;
"