Properly handle SVGElement className properties in spliceClassList.

SVG elements have a special className property, it's not a string like HTMLElements, rather an object. I don't understand the intricacies of the differences between animVal and baseVal, but in our experience you can simply work with baseVal.