v.24.2Bug Fix

Fix optimize_uniq_to_count to retain column alias

Fix optimize_uniq_to_count removing the column alias #60026 (Raúl Marín).