typelib: make sure that the typelib value is not GCed as long as the rbind value is alive