cleaning up stack trace stuff, adding failing test case

@jvilk, I think this one is on you: see my note in runtime.coffee