Add support for PoissonHMM and ExponentialHMM.