Add a hack for supporting Classifiers with the "layerwise" trainer. Fixes issue #32, though there is probably a better way to do this.