ENH: Generalize label type for `precision_recall_fscore_support`

Fixes the comment in https://github.com/scikit-learn/scikit-learn/issues/1835