Fix of element size differs. + Checking persisted

Before:
>> Array(self.class.primary_key)
=> ["i", "d"]
After:
>> Array.wrap(self.class.primary_key)
=> ["id"]