array: clear unused array slots after remove