Fix bug in setting styles

When setting the style of a multi-element selection, ensure that each
style is set independently.
Implement API for unsetting styles
Implement API for getting multiple styles
Implement API for setting styles with a function