Fix #18052 by using pprPrefixOcc in more places
This fixes several small oversights in the choice of pretty-printing function to use. Fixes #18052 (closed).
This fixes several small oversights in the choice of pretty-printing function to use. Fixes #18052 (closed).