WidgetModel: add widget style convenience accessor

This is especially useful if we want to support widgets being associated
with multiple styles at the same time. Then you can use a separator
character like comma to concatenate the styles. But then the accessor
becomes more important to maintain DRYness.
AbstractIndexWriter: simplify Character case