Replace checks for named items with tool quality:

Fixes #10338

Fixes http://smf.cataclysmdda.com/index.php?topic=8575

Hacksaw -> "SAW_M_FINE" (SAW_M includes the swiss army knife and is therefor not compatible with the list of items that it replaces).
Wrench -> "WRENCH"
Screwdriver -> "SCREW_FINE"

Only remove tool charges (from oxy torch, circsaw) when no alternative item with the quality is available.

Fixes #10247 - Add check for goggles when consuming welder or similar charges.

No, that refers to a specific item `it[0].type`, which can be anything and has nothing to do with tool qualities.