Gold tops $4,100 as dollar softens on Iran deal hopes