support svg elements, check arrays with arr.join

bummer, looks like on `svg`, `el.className` is an object, not a string.

I also replaced `arr instanceof Array` by `arr.join ?` as it's faster (http://jsperf.com/array-like-checks/2)