[PATCH v2 04/40] util: add function to unref array of GObjects