Extract a WeightedDiscrete or Matdist from a Matdist.
# S3 method for class 'Matdist'
md[i]
Matdist from which to extract Distributions.
indices specifying distributions to extract.
If length(i) == 1
then returns a WeightedDiscrete otherwise
returns a Matdist.