is-distribution function

Test if the object is a distribution