Fix issue with multi column primary keys

Generate `_id` entry for primary key and list all columns used for
primary keys in a comma separated list.

#835
1 job for master in 2 minutes and 29 seconds
Status Job ID Name Coverage
  Test
passed #412298837
test

00:02:29

25.0%