Added an extra test to the SdA testing, to see if the parameters in the different aspects of the SdAs remain tied after pickling.  Also added some code to specify the loss functions for each dA layer in the SdA, and convenience parameter returning functions for the parameters of hidden_layer and dA.