Fix recursion in OnlineVariance#mean() and add test

Trivial fix.