Probably don't need float for the sum over `w` either. I wonder what happens if `weights` is integer when `filled` is called with a float fill value.