Clean up recursive_array_search