Some changes to get transient tests working with theano. Also added a nonlinear capacitor to elements.py