improved stack checking under TCL_COMPILE_DEBUG