tests: Initialize the type system for old GLib's

Recent (>= 2.36) versions of GLib do that automatically.

But Travis CI runs on Ubuntu 14.04, which has GLib 2.32, so we need to
explicitly initialize the type system in that case.