[PATCH v2 11/15] virDomainObjGetMessages: Refactor using GPtrArray