Improve display of tables by prettystr

- split on multilines only if table does not fit on one line
- use different indentation levels depending on table nesting level