Weighted `mean` gives wrong (conjugated) result for `complex` arrays: `mean([1 + 0.5im], weights([1])) == 1.0 - 0.5im`.