Optimize ItemView.serializeCollection

Hopefully its clearer too as this is a more common pattern (I never saw that `partial` pattern before it's kind of clever)
this could be nice as a guard statement:

```js
 if (!this.model && !this.collection) {
  return {}
}
```

that way the three conditions are all on the same level.