Fixed row_ptr bug in sparse batch allocator.