check array type is zerotermized to fix empty slice problem in function like g_key_file_get_groups which is zero temized but hasn't an length annotation