Improve performance by using go/format despite its comment-stripping bug.

Use `already_shown` literal instead of nil for cycles.
The golang bug is https://code.google.com/p/go/issues/detail?id=5551.