This series changes more code to use the type-safe registry. Regression tested by the buildbot. I also built using a simulator, to make sure that the remote-sim.c change would at least compile. Tom