Fix of element size differs. + Checking persisted

Error: **Element size differs (1 should be 2)**

Why?

Was:

    >> Array(self.class.primary_key)
    => ["i", "d"]

Correct:

    >> Array.wrap(self.class.primary_key)
    => ["id"]

I think this is Ruby 1.9.3 Issue.