fix bug in predict() to cope with 'dummy' latent variables