value of style attribute can be a string or a map

A map is converted to a string as before, while a string is passed
on unchanged.  Fixes #33.