Convert symfile-debug.c to type-safe registry API