Implement item lookups, and try to correct indexing.

I have no idea if this is the right solution or if it is CSH's
modified Nethack to blame.  In either case, the items appear quite
close to the correct areas, so this should be good enough for now.