Fix in new chunk: when switching from doubles to integers, new chunk will call setNA(int) which resets _naCnt to -1 which is later used to decide compression strategy. Fixed by setting _naCnt back to correct value after converting to integers.