Advinc3

A continuation of https://github.com/Theano/Theano/pull/1083 

@nouiz I've tried to address the issues you pointed out.