undoDepthForTest

Test-only: depth of the undo stack. Public because the test lives in a separate Gradle module (KSLTesting) and internal doesn't reach across module boundaries.