glib/tests: Fix non-debug build of slice test

In addition to e013cf9cad56e919af2f057eb52d58371483a6f8