Fix generation of thrift map constants