Tests consistency of weighted statistic computation.
For statistics that support weighted evaluation, this test case compares
the result of direct computation on an array with repeated values with
a weighted computation on the corresponding (shorter) array with each
value appearing only once but with a weight value equal to its multiplicity
in the repeating array.