Add "checksupp", supplementary functions for check-tests

With code using different methods to reach a common state, it's useful to have
functions that allow debugging or testing within that space. The sort and hash
functions have common inputs and states, so this enables myself to write less
code and more tests.