gi: support not GObject based enum