Re-introduce integer reasoning when checking reasons in debug mode
This reintroduces functionality removed in 73f966b671f56da6a4787388768c8998f43c5629. The
problematic behaviour that changes of search order between debug and release builds is resolved by
ensuring the propagation queue remains unchanged while checking the reasons.