Find the sum of all values of $a$ for which one of the roots of $x^{2}+(2a+1)x+(a^{2}+2)=0$ is twice the other root.