Sets the size of the array. When making the array larger,
newly-added elements will be set to NULL. When making it smaller,
if array has a non-NULLGDestroyNotify function then it will be
called for the removed elements.
This function is not directly available to language bindings.