Test: Improve stacktrace reporting.
XML parsing: refine qnamePred.
Implement building of partial type order based on type hierarchy.