Use jQuery cross-browser inArray instead of indexOf

indexOf does not exist as an Array function in IE8
Include json2.js in tests so that it can be used in IE7

Fixes JSON undefined errors.