I've not used rack and pinion myself but guess the surface for the rack needs to be fairly flat. If you machine a flat section then you could always add a piece of flat bar on the inside of the box section to compensate. Go for 5-6mm thick and you will have plenty to thread into and it will give extra support