Yes, of course.  Since dist.a and dist.b depend on the array of shape parameters, they need to be arrays also, and I didn't think that would work.  But some one seems to have already thought that through...