Added safe side effect prediction for tool change transactions.

Signed-off-by: Jakob Brandsborg Ehmsen <jakobehmsen.github@gmail.com>