Fix for flatten method
Fixing dictionary extension
Merge pull request #83 from ankurp/flatten-fix

Fix for flatten method