stack-checker: make recursive-reduce have same signature as reduce.
pdf.wrap: adding some tests.