Disable statistics on Release builds and move tests that depend on -stats.