Fixes in select_to_array class extension