Misc. fixes following comments on PR introducing the learning rule mechanism.
https://github.com/lisa-lab/pylearn2/pull/420