fix serialization of parameter of type map
sort dictionary parameters by keys. add unit tests for SNS