implement size() and length() for distributions

solves https://github.com/JuliaStats/Distributions.jl/pull/214