Fixup list model serialization

We need to properly refcount the agent, so it doesn't get
deleted when it's still in use.

Change-Id: Id9a0764e15c10e7b15a216523d6b22764ac863dc
Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>