Fixes https://gitlab.com/kicad/code/kicad/-/issues/2406 Fixes https://gitlab.com/kicad/code/kicad/-/issues/2507
SELECTION now holds EDA_ITEMs not BOARD_ITEMs so various places had to change to casting the selected items to BOARD_ITEMs. Fixed compilation warnings on clang (Tom)