Add APIs to textiface for STS shell.

Also, add compile-time logic to dump individual subcomponent sizes.