Gold rises on wobbly dollar; stocks surge after US govt shutdown ends