Fix for svg export of standard groups

Still i have to check a test that is failing, before modifying it i have to do additional tests to be sure i'm not just making travis happy.
but it looks good to me, it fixes all the issues presented in #1585.

Update later.