stacktraces: fix callstack copying edgecases (Switch/Try-Catch)