Correctly update counter when a zero byte is read
Make sure root arrays can be read correctly

Fixes #31