A few odd ends

Small parts from https://github.com/conformal/gotk3/pull/59 which didn't fit anywhere else