IDBIndex keypath lost

Fixes #163

small note: I could have pushed this directly but I do everything with PR's so I can see the travis output ! :)