add instanceOf and equalType to Gene for advanced typing
delete unused things in Gene