Replace INT64_MIN

Review 523 by @srh
Merge branch 'next' into sam_etc_batched_writes