Add explicit template specializations for EventRegistry and TypeRegistry