Make the check for Theano version when we make a thunk.

That way, if user use the Ops directly, the check will still be done.