Groups of units of zero ternary quadratic forms