Added methods for devresid in the common cases (Bernoulli and Poisson)