Fixes to how the list widget merges attributes.

Also fixed the demos that didn't compile.