Converts type to a string representation.
type
a TocEntryType.
Returns a human-readable string for type. This string is only for debugging purpose and should not be displayed in a user interface.