cor and xcor now returns NAs in diagonal if NAs are present in data. Fixed tests.