Fixes rootgen bug

Was returning 1 over and over, and never advancing chan.  So we ended up
stuck in a loop with devwalk.
Lindented devroot

To help avoid future issues.  Also, I had to tweak it a little.  Lindent
had trouble with the "if, else if, if" block, and also unnecessarily
broke up the (struct qid){x, y, z} elements.