allow use object as gene (pass geneIndex to lib/gene-pool)