gio: Add regression test for double array encoding