Pretty printing: add parentheses around Relationals

Fixes #7117.