Handle primary_key array (compositive_foreign_key)

Ripped from an old Lighthouse ticket: http://zdennis.lighthouseapp.com/projects/14379/tickets/30-patch-to-support-importing-tables-with-composite-primary-keys