Generalized the label type for some methods in metrics.

Response to: https://github.com/scikit-learn/scikit-learn/issues/1835

Added support for non-integer labels in `confusion_matrix`, `precision_recall_fscore_support`, `f1_score`, `fbeta_score`, `precision_score` and `recall_score`.