rP26015 removed the values for the tech cost multipliers from the templates, since the component uses those default values, but failed to account for modifications thereof.
Those weren't applied since the template value didn't exist.
This changes that to iterating over all resources.
Discuss whether we need to cache the value for cmpResearcher as well.