Hi Kel, I wasn’t able to find anything in the official rulebooks, but I’ve found a post from Jams Jacobs that seems to confirm your idea: untyped damage bypasses DR.
Apparently, your coding is correct, while FG standard is not.
Now I’d like to understand why the parser doesn’t attach the damage type to the CT attack entry for NPCs, but this is another topic.