Fix test
Add visible flag, change version/changeset size.

Make version and changeset 32bit instead of 64bit. This should last for
a long time and saves 8 bytes per object. Also put visible flag as
highest bit into version number. Add tests for all of this.