Fix nondeterminism in svg attribute order.
Make backend instances reusable. (Fixes #32)