Add stacktrace to ParseError

Fixes #854. Also clean up the parse error test a little, while adding a .stack check.
I guess I wouldn't do anything more than ```this.stack = new Error(message).stack;``` in production.