[SPARK-3698][SQL] Fix case insensitive resolution of GetField.

Based on #2543.