Optimize ItemView.serializeData

Hopefully its clearer too as this is a more common pattern (I never saw that `partial` pattern before it's kind of clever)