models: Hide empty lists from repr()

(cherry picked from commit 305a76486d59a4fd24f335b16c80854dd0a232df)

Conflicts:
	docs/changelog.rst
models: Fix equality for fields set to the default

Fixes #837

(cherry picked from commit bdd1fb983b3abbbb604686e63647a8aaaa5d97a0)