David,
I found the problem.
There is a debug test function that uses a loop based upon the length of an array. The array is initially based upon transforms which uses x,y,z (length of array = 3), but later it's used to calculate only x,y, values (length of array = 2) so when the loop reaches 3 it crashes.
I'll get that fixed and post it here later.
Edit: Another problem.
Some numbers in the svg file are in scientific notation e.g. 2.4154872234042437e-16 and this is causing problems.
Edit: When saving an SVG file from Inkscape for example, use "Plain SVG", this seems to prevent scientific notation being used.