DictionaryPattern now makes proper use of Generics
Entropy functions for Dictionary, Repeating and Sequence match types.
Tidying up after the refactor.