array: Fix compilation
array: Remove a compiler warning

The GRealPtrArray variable is not necessary: we're accessing only public
fields of GPtrArray.
tests: Remove a compiler warning