fix some zero byte allocation scenarios.
make the zero byte read/write scenarios work without the contiguous flag.