to_kt functions, to see internals of thms, terms, types

to_kt in structures Thm, Term, Type enables viewing/using internal
representation.  Note the inverse functions would break the limitations
on creating thms, terms, types, and so would be unsound.