Add JaCoCo coverage.
Speed up ByteArrayRingBuffer by overriding the critical write overload.
Based on comments by @roadrunner2 in c0e42ffe12c6bfb3f1e52257589f10dd896817e6.