[MRG] Sparse multilabel target support in metrics

This introduces a series of helper classes that abstract away aggregation over multilabel structures. This enables efficient calculation in sparse and dense binary indicator matrices, while maintaining support for the deprecated sequences format.
This test is clearly far from an end-to-end test. It's testing a helper.