Added checks to the code extracting the stubs variable declarations from the Tcl headers, aborting when problems are found. Also reporting the definitions generated and used.
System more robust against problems, users get early warning about issues, easier to diagnose.