Fixes #127 - PRESERVE after some other mode.
Fixes #176 - Namespaces starting with XML in other cases, etc.