Handle className properly on SVG nodes

This strategy avoids a runtime check for every set (as opposed to using a mutation method).