Fix incorrect calculation in assertion.
Revise sparse array support for automatic block execution in response to changes.