Adding legend handler to PolyCollection and labels to stackplot

Here is a patch to solve #1341 and  #1943 by implementing a legend handler for PolyCollection.