support same types for input as for output in gy_gvalue.c