Added boolean support to serialization of maps

Without checking val for Boolean they are treated like Strings. The result was {"key":"true"} instead of {"key":true}.
Merge pull request #6 from Perfect-Pixel/patch-1

Added boolean support to serialization of maps