Better S-Expr printing, for e.g. :all-options and :all-statistics.
Fix declare-fun/define-fun in dumps; resolves bug 408, others.