How to input pymc3.Deterministic variables into theano.scan method?

I am a bit surprise as well - we are making some improvement of indexing in theano-pymc fork so hopefully these kind of surprise will be a bit less moving forward.