add doctest of glue.ligolw.utils to unit tests

- a couple of examples need modification to prevent them from writing
  files as a side effect of the test, so they don't actually get exercised,
  but the functions in question are wrappers of a function that does get
  tested.