Pretty-printing: improve omission of defaults

Consolidate default values and make flag pretty-printing use them.
Allow code to work with non-boolean defaults.