Disable printing stats for release builds.  Fix debug check for assertions.
Disable printing stats for release builds.  Fix debug check for assertions.

Minor refactoring and stronger types on arguments to reduce cast madness.
amaxwell/fileview,bitemyapp/fileview,bitemyapp/fileview