Fix minor IBA bugs with sizing outputs based on inputs.
Additional sanity checks in ImageBufAlgo functions that operate in-place
and require initialized buffers.