make GenerativeBayes cloneable