Compact to get rid of nil dictionary entries.
Merge pull request #2 from matthooks/master

Allow dictionaries to be nil