copy class attribute from svg to group element (fixes #9)