For loop does not work for CustomDist distribution

If you could provide a reproducible snippet for the ufunc part that would be useful for us to finally reproduce that error