Making the Go version more likely to be data-format compatible with the Java
and C++ versions (minor tweak) and some minor cleaning, with a touch of
minor hints to the compiler.