Compatibility changes to sjs:debug module & tests to not break the test suite on IE7 (and pass on IE8)