gold up, oil wavers as dollar weakens