String returned by value must be stored

This is a fix for 7_0_X for a valgrind error discovered by Vincenzo Innocente in 7_1_X. The function TypeWithDict::name() returns a string by value. A caller of this function, the free function typeCode(), saved the value of the char* to the embedded C string without saving the string itself. In those cases where TypeWithDict returns a temporary (as it will when the type is a pointer), the stored char* gets used after the temporary string is reclaimed. The fault is in the caller. This pull request has the caller save the returned string on the stack so that it does not get prematurely reclaimed.
This bug was introduced in 7_0_X.