theano printing handles Function

theano printing handles user defined functions applied to symbols as TensorVariables.

This handles the same problem as https://github.com/sympy/sympy/pull/1920 does in `lambdify`

@gilbertgede Does this look reasonable to you?