add support for NaNs in acovf