Avoid dispersion of type constructors: initGene
Avoid dispersion of type constructors: newDirection
Avoid dispersion of type constructors: fix doctest