Autoencoder-related fixes

I'm making an effort to incorporate the changes I made in my fork of Pylearn2 into the original repo.

This pull request concerns fixes for the Autoencoder framework.