Added explicit type definition for toMap: Map[String, Any]

 - linter https://github.com/HairyFotr/linter issues warnings for Any
   types which are not explicitly declared, seems like a good practice
Test amended to check for explicit toMap type definition
Merge pull request #39 from Kornel/master

toMap is generated with explicit type definition Map[String, Any]