Make label expressions consistent with class expressions by allowing them to work off an item (labelitem).
fix segfault on legends with keyimage (#4808)
Merge branch 'branch-6-4'

Conflicts:
	maputil.c
	msautotest