fix uninitialized warnings with 'type.ref'