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

r? @pcwalton
That makes sense too. I prefer `error!` for no particular reason, but I'll change it.