Convert `labels<-` into a generic function (as `labels()` is). Original issue: https://github.com/cbeleites/hyperSpec/issues/342