Enhanced _valueToIcon function

Enhanced _valueToIcon function to allow for wildcard characters in icon
object properties. In addition, getIconStyle() now applies icon style
correctly is value-to-icon mapping is in place. Finally, if an item
value is mapped to a function, the context of the function will now be
the tree.