Fix issue with XML special characters output by DumpVisitor.
Fix an NPE in StatementAdapter. Explicitly name literal types.