kaplibs: Fix variance calculation for sum estimator.