Add stacktrace to ParseError

Fixes #854. Also clean up the parse error test a little, while adding a .stack check.
@jrajav I tried a few times. Worked fine, except the 2 times when it crashed the whole IE...