Serialize Dictionary<string, int> and Dictionary<string, bool>.

Treat these types the same as Dictionary<string, object> and
Dictionary<string, bool>.  This matches the behavior of
System.Web.Script.Serialization.JavaScriptSerializer, and just
generally is less surprising behavior.