Add source maps/rewritten stack traces to reference implementation

Fixes #209.