Use composite primary key on delete

If the primary key is set to an array, we should be using them all when deleting the model.

Fixes #3761