Fix a few more compiler warnings

Use g_ptr_array_unref() where appropriate, and cast to GtkTreeModel
since GtkListStore implements that.
1 job for fix-compiler-warnings in 2 minutes and 43 seconds (queued for 2 seconds)
Status Job ID Name Coverage
  Test
passed #638883
build-fedora

00:02:43