Helper functions to get name and type (as string)
Improved overlapping selection with right-click