tools: fix setting of enumeration value
tools: fix setting of enumeration value

GcEnumeration also immlements GcInteger interface, so handle the
GcEnumeration case before GcInteger, as we want to set enumeration by
string, not by integer value.

AravisProject/aravis,AravisProject/aravis,AravisProject/aravis,AravisProject/aravis,AravisProject/aravis