consistency check

Fixes #4575 (closed)

Also random things I added while bored and unable to commit any real work.

Merge request reports

Loading