Dunno when this problem with randomized IDs arose. But it's fixed now. Also, sync with latest SVG-Edit.
Subpath tool. Also make the itex tool a little more selective (only applies to <foreignObject>s with a <math> firstChild.