Staging ApproxUDAFSum() for commit.
Minor bug fixes to ApproxUDAFAverage().