making test pass IE9

Also added tests for typeOf
Merge pull request #2 from Parcela/ie9-tests

making test pass IE9