callproc: tests, docs, and comment/error-reporting touchups.