Cope better with errors trying to retrieve a string representation of a value.

Should probably add a dedicated "debugDescription" method for each type instead.