Pass in the style name as a string vs an object when settings styles on layers.  Fixes #1456.