Re-introduce TCL_UNUSED. Some int <-> Tcl_Size fixes. Some more code cleanup