Add stable_counting_sanity test.  bugfix: n = 1
Holy cow, AUTO_TEST_TEMPLATE_MATRIX.
Tidy things.