Change LLVMTypeAsString to a templatized LLVMObjectAsString.

This can dump any LLVM object that has a print method, including types and
the Value hierarchy. Use it for dumping invalid instructions.