layout: Implement flow tree dumping with RUST_LOG=debug is on.

r? @pcwalton