In new_type(), assign the name to a C local variable as late as possible.

Previously the assignment was being made just before a call which could
invoke the GC, and hence cause the C local variable to be left pointing to
fromspace.