Fix alignment and null handling issues.
Add support of user-provided standard deviation to ApproxCountDistinct.