Properly handle zero length in chunk_alloc[a]/chunk_clone[a]