Optimize serde_json::value::Serializer::serialize_map by using Map::with_capacity (#1230, thanks @goffrie)