This change also includes a couple of related things: 1. Reorganized file descriptors. 3 is now debug and 4 is now the sink. 5 is a different sort of sink. 2. Fix (and test) a bug in nesting sections. Previously nested sections could come out of the sink, giving incorrect output.