support dict pattern
Merge pull request #1 from Bartvds/test/dict

support dict pattern