Always return an array from Table::primaryKey().

By having a consistent return type we can avoid errors downstream when tables don't have a primary key.

Refs #4862