text gutter: various fixes

- use pango_layout_get_pixel_size
  instead of pango_layout_get_size + PANGO_SCALE

- use g_clear_object when posible

https://bugzilla.gnome.org/show_bug.cgi?id=740883