Make rtpp_memdeb_dumpstats() return number of errors found, so that
we can exit with an error to aid debugging and regression testing.