In `test_array`, `test_array` and `test_map` the variable `offset` was written to but not read. The accumulated value should equal the total length of the input. This diff adds this check and fixes the warning in turn. Found via scan-build.
In `test_array`, `test_array` and `test_map` the variable `offset` was written to but not read. The accumulated value should equal the total length of the input. This diff adds this check and fixes the warning in turn. Found via scan-build.