Fix map checking

Argument checking for maps whose iteration set was zero-length was broken.  This fixes it and adds a test.