Fix 99problems "Gray code".

Fixes https://github.com/ocaml/ocaml.org/pull/492