Fix crash when using list layout (#68).

- Cause and fix found by @mrjjwright.
Merge pull request #71 from rastersize/fix-list-layout-calloc

Fix crash when using list layout (#68).