added dict additions to class_from_values constructors for Bernoulli, Gaussian autoencoder classes.