use .toJSON() to get attributes

instead of 
```js
attributes = modelOrCollection.attributes;
```
we should do
```js
attributes = modelOrCollection.toJSON();
```

I often times hook into `toJSON` methods of models or collections to add properties that I want to be persisted but no overwritten. For example in relations, when I want to store `parentId` properties