Added isLayerExpanded() to QgsLegendInterface

Adds isLayerExpanded() to QgsLegendInterface, which was clearly missing (there was the setter (setLayerExpanded()), but not the getter) ...