Fix for broken shape debug output

Restores shape finders ability to output debug text containing the
shapes and how many of each was found per pass.