Pattern pretty printer prints syntactically correct code.

Include auto-generated test case that was previously broken.