Add a test that fails because of apparent hasParens misuse.
Wrap successfully reprinted nodes with parentheses as necessary.

This commit fixes the failing testMisleadingExistingParens added in the
previous commit.