Start work on new DOM representation
Fix crashes from incorrect transmutation and traversal routines.