i think this could be construed as a bug.
i'd expect the index function on maps to work just the same
way that indexing usually works on maps.
there are a number of possible workarounds (e.g. write your own
index function, write a "present" function returning whether a key
is present in a map), but it's probably worth raising an issue about.