Relations return RelatedObject for poly relationships.
Fix `ArrayAccess` methods.
Some fixes
Upgrade internal counter when the array is altered
RelatedObjects can now return RelatedObjects
New records return a RelatedObjects on has_many relations too.
Fix count when an offset has been set
Fix count on non-saved relations
Test on last_query of connection instead of last_sql of the table