Fix handling of multi-column PK in GetChanges

This change fixes handling of multiple column primary keys when selecting changes for upload.