Gold extends rally from 17-month low, stronger dollar caps gains