Made evaluation of ModelObj logp's more robust. Specifically, check
that all unobserved variables have values that are valid according
to their priors before computing the logp for the observed variables.