Added framework for specifying how types are converted to strings.