Fixed bugs in close() and stat() and report

When no-missing flag was set stat() would fail with missing file
When close() was for non-existant filehandle spurious warning
Type when reporting mismatch between call sum and IO sum