Catch some rule errors with an assertion, and make QT assertions always fatal
Fix some content rule bugs in repository unordered