Fix registering unregistered enums
Mark a few tests as known to fail

Some ref counting tests fail due to a recent change in perl-Glib:
<https://git.gnome.org/browse/perl-Glib/commit/?id=fa876ff132035f1b5cc96428bd0a75ea939aa295>.