Fixed a bug where serialising related objects would only resolve if the stored value was a model instance, not an id.
Models can again be sorted on multiple fields.