Add stacktrace to ParseError

Fixes #854. Also clean up the parse error test a little, while adding a .stack check.
Whoa, what? Do you have any idea what caused the crash? That code should work pretty much back to IE5, all it needs is try..catch and Error.

That would be fine but if we can manage to get the stack working in latest IE with just a small change I think we should.