The Gemini Deep Deep Survey. II. Metals in Star-forming Galaxies at Redshift 1.3 < z < 2