Custom likelihood function (again) with DensityDist and Theano function

I always use switch, but I havent test the differences personally so I dont know as well.