Fix and restore text attributes for buffers

We were ending up with an array of references to the same empty list as our
list of blank attributes rather than an array of independent empty lists. Urwid
was choking on this.

Signed-off-by: Casey Dahlin <casey.dahlin@gmail.com>