test & fix for searching for rows using an array of primary keys
Merge branch 'master' into milestones/2.0.0