qunit: Implement suppressWarnings/restoreWarnings