Getting an ill-typed argument error

Ah I see what you mean, unfortunately not. A user has previously implemented their own tweedie distribution in Stan, which might be applicable in this case: Tweedie Likelihood (compound Poisson-gamma) in Stan