shash: New "smap" functions for working with string-to-string maps.