Fix the panic on runnig with --devtools due to a change in how type_id g...

...ets resolved since the last rustc upgrade.