#52 Rework the Registry.ids() method and introduce a Registry.types() + add test.
 - ids() return all the ids in the registry as a snapshot
 - typs() return all the types in the registry unmodifiable set that is in sync with the registry updates.