Add function str2intmap(), counter part of int2strmap().