Fixes to laser cut code generation. It should be correct now.