stacktraces: fix callstack copying edgecases (Loop)
(compilation-only commit)