ioreg::test: Test gap offset
ioreg: Fix incorrect calculation of gaps
Merge pull request #191 from bgamari/ioreg-fixes

A few ioreg! fixes