Generalized _make_record_index for genbank and EMBL, added tests