Store keys with data when using inline keys with autoincrement. Fixes #122