986ec5832e
Currently, only the dict value are converted with to_primitive(). There's no reason not to do it on keys too to support special types. Change-Id: I5b447f2fcd814088483f67e54261131cfc87ae79