Added parameters argument to createKeyIndex.

Allow individual graph implementations to take advantage of additional parameters for configuring indices.