Make pretty printing properly parenthesize higher order functions.
Not the best implementation, but it is simple and works well.