Fixed bug in LeNetConvPoolLayer (it had been derived from object instead of NeuralLayer).

Tested sgd_optimize_lenet. It's working, but both it and sgd_optimize_mlp are throwing IndexErrors that theano is able to handle. Not sure why the errors are thrown, or what theano is doing to correct the course.