Drop-in panicTrace function

This commit adds a `panicTrace` function to be used as a drop-in
replacement of the `panic` function, with the difference that we
wrap the error in a `WithStacktrace` error, to be later caught
and logged.
5 jobs for adinapoli/issue-267-part-3 in 85 minutes and 57 seconds (queued for 3 seconds)
Status Job ID Name Coverage
  Stack
passed #10577
stack

00:01:55

 
  Cabal
passed #10578
cabal

00:34:41

 
  Bench
passed #10579
bench

00:20:00

 
  Test
passed #10583
test

00:29:19

failed #10580
test

00:18:05