Type cleanup, internally and in the API.  Fixes most llvm warnings.
112 files changed