Pretty printing: add parentheses around Relationals

Fixes #7117.
This doesn't explain too much.  Just an issue reference = no comment.