Found what's causing it. It's fermium-ore from I believe SpFu Material Pack and maraxsis-coral from Maraxsis. I looked at both and I don't really see an in their code, meaning it's something I'm doing wrong. OK, time to troubleshoot. Thanks for the info, it was very valuable.
edit
Figured it out. I'm mishandling ore assignment for resources with multiple ores. In technical terms, I misunderstood the scope of indexing variables in a loop and was trying to use their values outside the loop. That's what was producing the nil values. That's an easy fix, but the mod will still only grab one ore out of resources with multiple ores. Need a better way to handle that.