Tweaks to the spandsp alloc functions, and a fix for bi-level image row
squashing.