Supported 2 new params in createKeyIndex(): "type" and "keytype"