Added a fix when pickling the SdA so that the layer types are preserved.  Hopefully fixes a bug where cPickle would throw an unpickling exception "UnpicklingError: NEWOBJ class argument isn't a type object" when executing cPickle.load(f) on an SdA .pkl file.