Gold advanced as Treasuries rallied and the dollar weakened after data showing an unexpected contraction in US job openings.