done in https://github.com/Theano/Theano/pull/1424