Building long wall segments cost stone, and upgrading them gates costs even more stone. In reality gate doors are //not// made of stone. This patch therefore changes the upgrade cost to a 2:1 combination of wood and metal, and tweaks the cost of gates.
The <Cost> component of gates is necessary for repairs; the value is less than the combined costs of building a long wall segment and subsequently upgrading it to a gate.