weighted metrics: fix sample_weight handling for average=samples