Fix bug in R engine for full likelihood and invert covariance after theta update to fix C engine for full