Fix definition of logdet.residuals for noncanonical links