Add --rerun option (and counter) to bin/doctest.  Assures a consistent API for test and doctest
Merge pull request #8070 from pbrady/doctest_rerun

Add --rerun option (and counter) to bin/doctest.