COMPAT: infer_freq compat on passing an Index of strings (GH6463)

closes #6463