Support multiple primary keys in schema. Fixes #280