Fix autoincremented compound keys inserts

When inserting new records on a autoincremented compound keys table, a
bug would prevent updating the autoincremented value.

Fixes #233