Fix bad assert in sampgdk_array_remove()