flashv2enc: reallocate not only on block count changes but on dimension changes.