Fix size/offset assertion to allow negative offsets and folded nodes.