allow NULL for key (meaning "dontcare") in strmap iteration