Made ActiveRecord::isPrimaryKey() public

+ added tests and fixed behavior
Merge pull request #1208 from cebe/ar-pk-public

Made ActiveRecord::isPrimaryKey() public