Show the stack trace; refactor decoding of call/cast