Fixes setting of primary key on instances after creation

See https://github.com/composite-primary-keys/composite_primary_keys/issues/191