ENH: Ensure that rolling_var of identical values is exactly zero

Add a check to rolling_var for repeated observations, in order to
produce an exactly zero value of the variance when all entries are
identical. Related to the discussion in #7900