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