Gold surges past $3,100 as uncertainty propels flows