[dev-overlay] Parse stacks in reducer not during dispatch (#79788)
In the reducer we'll later inject the implementation of `get*Stack`. The reducer will live in a different module than `stitched-errors` so we need to make sure `get*Stack` is a singleton. Dependency injection makes this easier to achieve.
`getOwnerStack` will be injected in a follow-up