encoding/gob: shave off some init time cost ยท golang/go@8259ac4

Avoid unnecessary allocations when calling reflect.TypeOf; we can use nil pointers, which fit into an interface without allocating. This saves about 1% of CPU time. The builtin types are limited t...