Implement `BeginPanic` handling in const eval for #16935, needs some figuring out of how to write these tests correctly